package com.sky.article;

/*
@description:长度校验
@ClassName ContentLengthCheck
@author chen
@create 2024-09-11 23:19
@Version 1.0
*/
public class ContentLengthCheck extends AbstractCheck{
    @Override
    protected void check(ArticlePublishRequest request) {
        if(request.getContent().length() < 1 || request.getContent().length() > 10000){
            throw new RuntimeException();
        }
    }
}
